package com.coffee.admin.api.common.service;

import com.coffee.admin.api.common.query.GtRegionQuery;
import com.coffee.admin.api.common.result.GtRegionResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface GtRegionService {

	Page<GtRegionResult> getPager(GtRegionQuery param, PagerInfo pr);
	
	Integer count(GtRegionQuery param);
	
	GtRegionResult getDetail(Integer id);
	
	List<GtRegionResult> getList(GtRegionQuery param, PagerInfo pr);
	
	List<GtRegionResult> getList(GtRegionQuery param);
	
	List<GtRegionResult> getList();

	void delete(Integer id);

	void addOrUpdate(GtRegionResult result)throws BusinessException;

	void updateIsMustCity(GtRegionResult result)throws BusinessException;

	Map<Integer,GtRegionResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,GtRegionResult> getItemMap();
	
}